package com.example.healthsystem.mapper;

import com.example.healthsystem.entity.*;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Repository
@Mapper
public interface UserMapper {

// === user Register ===
    // --- allow user register student/teacher ==> Only admin can do it
    int registerUser(user user);

// ===  search user infomation
    List<user> findAlluser();

    String haveId(String parameter_);
    // ---根据账号查询个人信息
    user findByUsername(String username);

// === change Infomation ===
    // --- 管理员 修改所有信息
    void adminchangeProfile(user user);
    // --- 用户 修改信息
    void userchangeProfile(user user);
// === delete user ===
    int deleteUser(String username);
}
